package com.itheima.mapper;

import com.itheima.pojo.Score;
import com.itheima.pojo.Scores;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

public interface ScoreMapper {
    void addSocre(Scores scores);

    @Delete("delete from score where id=#{id}")
    void delectById(int id);

    void updateScore(Scores scores);

    Score findById(int id);

    List<Score> findByUid(int uid);

    List<Score> findBySid(int sid);

    List<Score> findByCid(int cid);

    List<Score> findAll();
}
